package com.cy.mall.dao.mapper.enter;

import com.cy.mall.model.domain.enter.Enter;
import com.cy.mall.model.query.enter.EnterListQuery;
import com.cy.mall.model.vo.enter.EnterEvaluateStatusVO;
import com.cy.mall.model.vo.enter.EnterListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

/**
 * @Description EnterMapper
 * @Author tanyilin
 * @Date 2019/3/20 11:36
 */
@Mapper
public interface EnterMapper extends BaseMapper<Enter> {

    /**
     * 查询-后台 企业列表
     * @param query
     * @return int
     */
    int selectEnterListCount(EnterListQuery query);

    List<EnterListVO> selectEnterList(EnterListQuery query);

    /**
     * 查询企业评估信息填写状态
     * @param enterId
     * @return com.cy.mall.model.vo.enter.EnterEvaluateStatusVO
     */
    EnterEvaluateStatusVO selectEnterEvaluateStatus(@Param("enterId") Long enterId);
}
